package com.cloud.base.domain.sys;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class RoleDeptRequest implements Serializable {

    @Schema(description = "角色code")
    @NotEmpty(message = "角色code不能为空")
    private String roleId;

    @Schema(description = "部门id")
    @NotNull(message = "部门id不能为空")
    private List<String> deptIds;
}
